<?php
require_once "checklogin.php";
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>志愿者服务网后台管理</title>
    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="layui/css/layui.css">
    <script src="layui/layui.js"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">志愿者服务网后台管理</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;"><?= $_SESSION['userName']?></a>
                <dl class="layui-nav-child">
                    <dd><a href="#" target="_content">基本资料</a></dd>
                    <dd><a href="#">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="logout.php">退出</a></li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;"><i class="layui-icon layui-icon-read"></i>&nbsp;新闻管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="newsList.php" target="_content">查看新闻</a></dd>
                        <dd><a href="newsAdd.php" target="_content">添加新闻</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon layui-icon-list"></i>&nbsp;分类管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="cateList.php" target="_content">查看分类</a></dd>
                        <dd><a href="cateAdd.php" target="_content">添加分类</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon layui-icon-username"></i>&nbsp;管理员管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="adminList.php" target="_content">查看管理员</a></dd>
                        <dd><a href="adminAdd.php" target="_content">添加管理员</a></dd>
                        <dd><a href="adminModifyPwd.php" target="_content">修改密码</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="title ly-right-title">
            <span class="actived"><i class="layui-icon layui-icon-home"></i><span id="righttitle">新闻管理</span></span>
        </div>
        <iframe scrolling="yes" src="" frameborder="0" name="_content" width="100%" height="100%"></iframe>
    </div>
    <div class="layui-footer">
        <!-- 底部固定区域 -->
        欢迎使用志愿者服务网后台管理 V1.0
    </div>
</div>
<script src="layui/layui.js"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;

    });
</script>
</body>
</html>